/* General body styles */
body {
  font-family: Arial, sans-serif;
  background: #498049;
  margin: 0;
  padding: 0;
}

/* Page title */
h1 {
  text-align: center;
  padding: 10px;
  font-size: 60px;
  color: #fff;
  text-shadow:
      -2px -2px 0 #000, /* Top-left shadow */
       2px -2px 0 #000, /* Top-right shadow */
      -2px  2px 0 #000, /* Bottom-left shadow */
       2px  2px 0 #000; /* Bottom-right shadow */
  
}

/* Gallery grid container */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual gallery card */
.gallery-item {
  border: 2px solid #ccc;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  text-align: center;        /* center text and image */
  transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Image inside card */
.gallery-item img {
  width: 100%;
  max-width: 200px;          /* never bigger than 200px wide */
  height: 150px;             /* fixed thumbnail height */
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}

/* Subtitle under image */
.subtitle {
  display: block;           /* full width inside card */
  margin-top: 8px;
  font-size: 14px;
  color: #333;
  text-align: center;       /* force center */
}

/* Back link style (used only on subgallery.html) */
.back {
  display: block;
  text-align: center;
  margin-top: 10px;
  padding: 10px;
  text-decoration: none;
  color: white;
  background: #333;
  border-radius: 5px;
  width: 100px;
  margin-left: auto;
  margin-right: auto;
}

.back:hover {
  background: #555;
}
